package com.xiaoyun.activiti03;

import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngines;
import org.activiti.engine.RuntimeService;
import org.activiti.engine.runtime.ProcessInstance;

import java.util.HashMap;
import java.util.Map;

public class AssigneeUEL {

    public static void main(String[] args) {
        ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();

        RuntimeService runtimeService = processEngine.getRuntimeService();

        Map<String, Object> map = new HashMap<>();
        map.put("assignee0", "zhangsan");
        map.put("assignee1", "lisi");
        map.put("assignee2", "wangwu");

        ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("holiday2", map);

        System.out.println(processInstance.getName());

    }
}
